#!/bin/sh

sudo apt-get install cmake libsdl1.2-dev libsdl-mixer1.2-dev libportmidi-dev
wget http://libregamenight.xyz/pub/data/freedoom/src.tar.gz
tar -xvf src.tar.gz
cd odamex-src-0.7.0
cmake .
make
sudo make install
cd ..
wget http://libregamenight.xyz/pub/freedoom/data/freedoom1.wad
wget http://libregamenight.xyz/pub/freedoom/data/freedoom2.wad
wget http://libregamenight.xyz/pub/freedoom/data/freedm.wad
echo "If you didn't experience any errors, you should be ready to go!"
echo "If it's LGN right now, just run 'odamex +connect libregamenight.xyz:8007' to join :)"
